Optimal. Leaf size=95 \[ \frac{2 a^2 \tan (e+f x) \log (1-\sec (e+f x))}{f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}+\frac{a \tan (e+f x) \sqrt{a \sec (e+f x)+a}}{f \sqrt{c-c \sec (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.263783, antiderivative size = 95, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 36, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.056, Rules used = {3955, 3952} \[ \frac{2 a^2 \tan (e+f x) \log (1-\sec (e+f x))}{f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}+\frac{a \tan (e+f x) \sqrt{a \sec (e+f x)+a}}{f \sqrt{c-c \sec (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3955
Rule 3952
Rubi steps
\begin{align*} \int \frac{\sec (e+f x) (a+a \sec (e+f x))^{3/2}}{\sqrt{c-c \sec (e+f x)}} \, dx &=\frac{a \sqrt{a+a \sec (e+f x)} \tan (e+f x)}{f \sqrt{c-c \sec (e+f x)}}+(2 a) \int \frac{\sec (e+f x) \sqrt{a+a \sec (e+f x)}}{\sqrt{c-c \sec (e+f x)}} \, dx\\ &=\frac{2 a^2 \log (1-\sec (e+f x)) \tan (e+f x)}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}+\frac{a \sqrt{a+a \sec (e+f x)} \tan (e+f x)}{f \sqrt{c-c \sec (e+f x)}}\\ \end{align*}
Mathematica [C] time = 1.44814, size = 174, normalized size = 1.83 \[ \frac{\sqrt{2} a \sin \left (\frac{1}{2} (e+f x)\right ) \sec ^{\frac{3}{2}}(e+f x) \sqrt{a (\sec (e+f x)+1)} \left (1+\left (4 \log \left (1-e^{i (e+f x)}\right )-2 \log \left (1+e^{2 i (e+f x)}\right )\right ) \cos (e+f x)\right ) \left (\cos \left (\frac{1}{2} (e+f x)\right )+i \sin \left (\frac{1}{2} (e+f x)\right )\right )}{f \left (1+e^{i (e+f x)}\right ) \sqrt{\frac{e^{i (e+f x)}}{1+e^{2 i (e+f x)}}} \sqrt{c-c \sec (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.338, size = 162, normalized size = 1.7 \begin{align*}{\frac{a}{f\sin \left ( fx+e \right ) c} \left ( 2\,\cos \left ( fx+e \right ) \ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) -\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) +2\,\cos \left ( fx+e \right ) \ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) -4\,\cos \left ( fx+e \right ) \ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) -\cos \left ( fx+e \right ) -1 \right ) \sqrt{{\frac{a \left ( 1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }}}\sqrt{{\frac{c \left ( -1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.90335, size = 371, normalized size = 3.91 \begin{align*} -\frac{2 \,{\left (a \cos \left (\frac{1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) \sin \left (2 \, f x + 2 \, e\right ) +{\left (a \cos \left (2 \, f x + 2 \, e\right )^{2} + a \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, a \cos \left (2 \, f x + 2 \, e\right ) + a\right )} \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right ) - 2 \,{\left (a \cos \left (2 \, f x + 2 \, e\right )^{2} + a \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, a \cos \left (2 \, f x + 2 \, e\right ) + a\right )} \arctan \left (\sin \left (\frac{1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ), \cos \left (\frac{1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) - 1\right ) -{\left (a \cos \left (2 \, f x + 2 \, e\right ) + a\right )} \sin \left (\frac{1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right )\right )} \sqrt{a} \sqrt{c}}{{\left (c \cos \left (2 \, f x + 2 \, e\right )^{2} + c \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, c \cos \left (2 \, f x + 2 \, e\right ) + c\right )} f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{{\left (a \sec \left (f x + e\right )^{2} + a \sec \left (f x + e\right )\right )} \sqrt{a \sec \left (f x + e\right ) + a} \sqrt{-c \sec \left (f x + e\right ) + c}}{c \sec \left (f x + e\right ) - c}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]